package com.tangyuan.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.common.result.Result;
import com.tangyuan.dto.CouponFormDTO;
import com.tangyuan.dto.CouponIssueFormDTO;
import com.tangyuan.model.Coupon;
import com.tangyuan.model.User;


/**
 * <p>
 * 优惠券的规则信息 服务类
 * </p>
 *
 * @author wangshuai
 * @since 2024-03-19
 */
public interface CouponService extends IService<Coupon> {

    Result<Object> saveCoupon(CouponFormDTO dto);

    Result<Object> beginIssue(User userId, Long id);

    Result<Object> writeOffCoupon(Long user, String code);
}
